// swift-tools-version:4.0
import PackageDescription

let package = Package(
    name: "live",
    dependencies: [
        .package(url: "https://github.com/vapor/vapor.git", from: "3.0.0"),
        .package(url: "https://github.com/vapor/fluent-sqlite.git", from: "3.0.0"),
        .package(url: "https://github.com/vapor/websocket.git", from: "1.0.0"),
        .package(url: "https://github.com/vapor/auth.git", from: "2.0.0"),
        .package(url: "https://github.com/vapor/multipart.git", from: "3.0.0"),
        .package(url: "https://github.com/vapor/jwt.git", from: "3.0.0"),
        .package(url: "https://github.com/vapor/validation.git", from: "2.0.0"),
        .package(url: "https://github.com/vapor/fluent-postgresql.git", from: "1.0.0"),
        .package(url: "https://github.com/vapor-community/pagination.git", from: "1.0.0"),
        .package(url: "https://github.com/vapor-community/apns.git", .revisionItem("1111e64")),
        .package(url: "https://github.com/skelpo/JWTMiddleware.git", from: "0.8.0")
    ],
    targets: [
        .target(name: "App", dependencies: ["FluentPostgreSQL", "FluentSQLite", "Vapor", "WebSocket", "Authentication", "Pagination", "Multipart", "JWT", "Validation", "APNS", "JWTMiddleware"]),
        .target(name: "Run", dependencies: ["App"]),
        .testTarget(name: "AppTests", dependencies: ["App"])
    ]
)

